import { useState, lazy, Suspense } from 'react'
import './App.css'
import RoutesConfig from './routes'
// 推迟加载和运行   
// 当切换到路由后加载，按需加载   
// import HomeDetail from 
import Header from './components/Header'
import Footer from './components/Footer'

  
function App() {
  

  return (
    <div className="App">
      <Header/>
      <Suspense fallback={<div>loading...</div>}>
        <RoutesConfig />
      </Suspense>
      <Footer/>
    </div>
  )
}

export default App
